<? session_start();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
<body>
<?
 
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/"."inc/ActionFile.Class.php";

if($_SESSION["Login"][1]<>$SystemConest[2])
{
	die("你不是超级管理员,没有权限设置");
}

$myfile=new  ActionFile();
$FileArray=$myfile->listDirTree($SystemConest[0]."/template","");

?>
<table width="90%" border="0" cellspacing="0" cellpadding="0">
  <? for($i=0;$i<count($FileArray);$i++)
  {
	  if($i % 4 ==0)
	  {
  ?>
  <tr>
  <? }?>
    <td height="78" align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><a href="list.php?path=<? echo "/template/".$FileArray[$i];?>"><img src="<? echo "/".$SystemConest[1]."/Iamges/";?>folder.gif" alt="模板风格<? echo $FileArray[$i];?>" border="0"></a></td>
  </tr>
  <tr>
    <td align="center"><? echo $FileArray[$i];?></td>
  </tr>
</table>
</td>
  <? if($i % 4 !=0)
	  {?>
  </tr>
  <?
	  }
  }
  ?>
</table>

</body>
</html>